﻿using System;
using System.ComponentModel.DataAnnotations;
using Util.Domains.Repositories;

namespace IterationLife.FootballTeaching.Queries {
    /// <summary>
    /// 用户课程查询实体
    /// </summary>
    public class UserCourseQuery : QueryEntityBase {
        /// <summary>
        /// 用户课程编
        /// </summary>
        [Display(Name="用户课程编")]
        public Guid? UserCourseId { get; set; }
        /// <summary>
        /// 课程编号
        /// </summary>
        [Display(Name="课程编号")]
        public Guid? CourseId { get; set; }
        /// <summary>
        /// 订阅状态
        /// </summary>
        [Display(Name="订阅状态")]
        public int? SubscribeState { get; set; }
        /// <summary>
        /// 起始创建时间
        /// </summary>
        [Display( Name = "起始创建时间" )]
        public DateTime? BeginCreationTime { get; set; }
        /// <summary>
        /// 结束创建时间
        /// </summary>
        [Display( Name = "结束创建时间" )]
        public DateTime? EndCreationTime { get; set; }        
        /// <summary>
        /// 用户编号
        /// </summary>
        [Display(Name="用户编号")]
        public Guid? UserId { get; set; }
        
        /// <summary>
        /// 添加描述
        /// </summary>
        protected override void AddDescriptions() {
            base.AddDescriptions();
            AddDescription( "用户课程编", UserCourseId );
            AddDescription( "课程编号", CourseId );
            AddDescription( "订阅状态", SubscribeState );
            AddDescription( "起始创建时间", BeginCreationTime );
            AddDescription( "结束创建时间", EndCreationTime );
            AddDescription( "用户编号", UserId );
        } 
    }
}
